<?php
 
echo '<?xml version="1.0" encoding="utf-8"?>'."\r\n";
/*
echo '<?xml-stylesheet type="text/xsl" href="/css/rss.xsl"?>'."\r\n";
*/
?><rss version="2.0"> 
<channel> 
<title>程序员资料下载 - 下载了</title> 
<link>http://www.xiazaile.info</link> 
<description>程序员资料下载 - 下载了</description> 
<lastBuildDate><?=gmdate("D, d M Y H:i:s", time())?> GMT</lastBuildDate> 
<?php foreach($items as $row){?>
        <item>
            <title><![CDATA[<?=$row["title"]?>]]></title>
            <link><?=$row["link"]?></link>
            <description><![CDATA[<?=$row["description"]?>]]></description>
            <pubDate><?=gmdate("D, d M Y H:i:s",$row["pubdate"])?> GMT</pubDate>
            <guid><?=$row["link"]?></guid>
        </item> 
<?php }?>
</channel> 
</rss>